package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class CharacterSetSpecificationList {

    private int beginIndex;
    private int endIndex;
    private List<CharacterSetName> characterSetSpecificationList;

    public CharacterSetSpecificationList(List<CharacterSetName> characterSetSpecificationList) {
        this.beginIndex = characterSetSpecificationList.get(0).getBeginIndex();
        this.endIndex = characterSetSpecificationList.get(characterSetSpecificationList.size() - 1).getEndIndex();
        this.characterSetSpecificationList = characterSetSpecificationList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return characterSetSpecificationList.size();
    }

    public CharacterSetName get(int index) {
        return characterSetSpecificationList.get(index);
    }

}
